package cn.dankal.flyaudio.current.post;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import butterknife.BindView;
import butterknife.ButterKnife;
import cn.dankal.basiclib.util.image.PicUtils;
import cn.dankal.basiclib.widget.banner.VH;
import cn.dankal.flyaudio.R;

/**
 * Created by zero on 2017/10/12.
 */

public class BannerItemView implements VH<String> {

    @BindView(R.id.iv_img)
    ImageView mIvImg;

    @Override
    public View createView(LayoutInflater inflater, ViewGroup container) {
        View inflate = inflater.inflate(R.layout.banner_item, container, false);
        ButterKnife.bind(this, inflate);
        return inflate;
    }

    @Override
    public void onBind(View view, String url) {
        PicUtils.loadNormal(url,mIvImg);
    }

}
